﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SEReservationSystem
{
    public partial class panel : Form
    {
        public panel()
        {
            InitializeComponent();
            startPage();
        }

        public void clearScreen()
        {
            this.pnlVRoom.Visible = false;
            this.pnlReserve.Visible = false;
            this.pnlClient.Visible = false;
            this.pnlMain.Visible = false;
            this.pnlRate.Visible = false;
        }

        public void startPage()
        {
            clearScreen();
            this.pnlMain.Dock = DockStyle.Fill;
            this.pnlMain.Visible = true;
        }

        private void btnClient_Click(object sender, EventArgs e)
        {
            Client cl = new Client();
            cl.Show();
            this.Visible = false;
        }

        private void btnReservation_Click(object sender, EventArgs e)
        {
            Reservation reserve = new Reservation();
            reserve.Show();
            this.Visible = false;
        }

        private void btnViewRooms_Click(object sender, EventArgs e)
        {
            View_Rooms vrooms = new View_Rooms();
            vrooms.Show();
            this.Visible = false;
        }

        private void btnRate_Click(object sender, EventArgs e)
        {
            RateModification rate = new RateModification();
            rate.Show();
            this.Visible = false;
        }

        private void drpReserve_Click(object sender, EventArgs e)
        {
            clearScreen();
            this.pnlReserve.Dock = DockStyle.Fill;
            this.pnlReserve.Visible = true;
        }

        private void drpClient_Click(object sender, EventArgs e)
        {
            clearScreen();
            this.pnlClient.Dock = DockStyle.Fill;
            this.pnlClient.Visible = true;
        }

        private void drpMenu_Click(object sender, EventArgs e)
        {
            clearScreen();
            this.pnlMain.Dock = DockStyle.Fill;
            this.pnlMain.Visible = true;
        }

        private void drpRooms_Click(object sender, EventArgs e)
        {
            clearScreen();
            this.pnlVRoom.Dock = DockStyle.Fill;
            this.pnlVRoom.Visible = true;
        }

        private void tabPage5_Click(object sender, EventArgs e)
        {

        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void menu_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            Form1 logout = new Form1();
            this.Visible = false;
            logout.Show();
        }

        private void tabPage1_Click(object sender, EventArgs e)
        {

        }

        private void pnlRate_Paint(object sender, PaintEventArgs e)
        {

        }

        private void drpRate_Click(object sender, EventArgs e)
        {
            clearScreen();
            this.pnlRate.Dock = DockStyle.Fill;
            this.pnlRate.Visible = true;
        }
    }
}
